home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3 / ifl / iflDictionary.z / iflDictionary
Text File  |  1998-10-20  |  4KB  |  133 lines

  1.  
  2.  
  3.  
  4. iiiiffffllllDDDDiiiiccccttttiiiioooonnnnaaaarrrryyyy((((3333))))  IIIImmmmaaaaggggeeee FFFFoooorrrrmmmmaaaatttt LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll   iiiiffffllllDDDDiiiiccccttttiiiioooonnnnaaaarrrryyyy((((3333))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      iiiiffffllllDDDDiiiiccccttttiiiioooonnnnaaaarrrryyyy - implements a dictionary of named elements
  10.  
  11. IIIINNNNHHHHEEEERRRRIIIITTTTSSSS FFFFRRRROOOOMMMM
  12.      iflHashTable
  13.  
  14. HHHHEEEEAAAADDDDEEEERRRR FFFFIIIILLLLEEEE
  15.      #include <ifl/iflDictionary.h>
  16.  
  17. CCCCLLLLAAAASSSSSSSS DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  18.      iflDictionary is used to create a dictionary of named elements. It is
  19.      derived from iflHashTable, and supplies appropriate hash function and key
  20.      matching methods for name strings.  The elements of the dictionary must
  21.      be, or be derived from, iflName.
  22.  
  23. CCCCLLLLAAAASSSSSSSS MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN SSSSUUUUMMMMMMMMAAAARRRRYYYY
  24.      CCCCoooonnnnssssttttrrrruuuuccccttttoooorrrr
  25.  
  26.           iflDictionary(int size=0, int caseSensitive=TRUE)
  27.  
  28.      IIIInnnnsssseeeerrrrtttt////ffffiiiinnnndddd ddddiiiiccccttttiiiioooonnnnaaaarrrryyyy eeeennnnttttrrrriiiieeeessss
  29.  
  30.           int insert(iflName* elem)
  31.           iflName* find(const char* s, int insertIfNeeded=FALSE)
  32.  
  33.  
  34. FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNNSSSS
  35.      iiiiffffllllDDDDiiiiccccttttiiiioooonnnnaaaarrrryyyy(((())))
  36.  
  37.           iflDictionary(int size=0, int caseSensitive=TRUE)
  38.  
  39.  
  40.           Creates an iflDictionary with initial capacity, _s_i_z_e.  The default
  41.           value of zero creates a table with 131 slots.  The name lookup can
  42.           either be case-sensitive or case-insensitive, depending on whether
  43.           _c_a_s_e_S_e_n_s_i_t_i_v_e it TRUE or FALSE, respectively.
  44.  
  45.      ffffiiiinnnndddd(((())))
  46.  
  47.           iflName* find(const char* s, int insertIfNeeded=FALSE)
  48.  
  49.  
  50.           Tries to locate the element with name string _s in the dictionary. If
  51.           unsuccessful and if _i_n_s_e_r_t_I_f_N_e_e_d_e_d is TRUE then an element of type
  52.           iflName, with name string _s, is inserted into the dictionary, a
  53.           value of NULL is returned otherwise.
  54.  
  55.      iiiinnnnsssseeeerrrrtttt(((())))
  56.  
  57.           int insert(iflName* elem)
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. iiiiffffllllDDDDiiiiccccttttiiiioooonnnnaaaarrrryyyy((((3333))))  IIIImmmmaaaaggggeeee FFFFoooorrrrmmmmaaaatttt LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll   iiiiffffllllDDDDiiiiccccttttiiiioooonnnnaaaarrrryyyy((((3333))))
  71.  
  72.  
  73.  
  74.           Returns TRUE if _e_l_e_m is successfully inserted into the dictionary;
  75.           FALSE otherwise.
  76.  
  77. IIIINNNNHHHHEEEERRRRIIIITTTTEEEEDDDD MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNNSSSS
  78.    IIIInnnnhhhheeeerrrriiiitttteeeedddd ffffrrrroooommmm iiiiffffllllHHHHaaaasssshhhhTTTTaaaabbbblllleeee
  79.      clear(), find(), getFullFraction(), insert(), match(), next(), remove(),
  80.      setFullFraction()
  81.  
  82. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  83.      iflHashTable, iflName
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.